//
//  HTProfileViewViewModel.swift
//  MagaCore
//
//  Created by 罗林轩 on 2024/9/2.
//  Copyright © 2024 HT. All rights reserved.
//

import Foundation

enum HTProfileStyle: String {
    case protrait = "Protrait"
    case nickname = "Nickname"
    case gender = "Gender"
    case brithday = "Brithday"
    case email = "Email"
    case phoneNumber = "Phone number"
}

class HTProfileItemViewModel: ObservableObject {
    var type: HTProfileStyle = .protrait
    var content: String
    var clickCallBack: () -> Void?
    init(type: HTProfileStyle, content: String, clickCallBack: @escaping () -> Void?) {
        self.type = type
        self.content = content
        self.clickCallBack = clickCallBack
    }
}

class HTProfileViewViewModel: ObservableObject {
    @Published var items: [HTProfileItemViewModel] = [
        HTProfileItemViewModel(type: .protrait, content: "library_default_avatar", clickCallBack: {
        }), HTProfileItemViewModel(type: .nickname, content: "library_default_avatar", clickCallBack: {
        }), HTProfileItemViewModel(type: .gender, content: "library_default_avatar", clickCallBack: {
        }), HTProfileItemViewModel(type: .brithday, content: "library_default_avatar", clickCallBack: {
        }), HTProfileItemViewModel(type: .email, content: "library_default_avatar", clickCallBack: {
        }), HTProfileItemViewModel(type: .phoneNumber, content: "library_default_avatar", clickCallBack: {
        })]
}
